package com.kun.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kun.domain.TUserFollowing;

import java.util.List;

public interface TUserFollowingMapper extends BaseMapper<TUserFollowing> {

    /**
     * 根据UserId查询出来所有的关注人包含关注人信息 / 根据用户ID查询粉丝（包含粉丝的基本信息）
     */
    List<TUserFollowing> findFollowingByUserId(TUserFollowing tUserFollowing);

    /**
     * 获取我关注的和关注我的
     */
    List<TUserFollowing> getUserFollowingsAndFollowers(String userId);
}
